home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Developer University / DUProjects / Finance SOM Library / •SOM / SFinance.idl < prev    next >
Encoding:
Text File  |  1995-10-30  |  2.0 KB  |  70 lines  |  [TEXT/CWIE]

  1. //     Copyright © 1995 David A. Wilson. All rights reserved.
  2. //    2-9-95  
  3.  
  4. #ifndef _SFINANCE_
  5. #define _SFINANCE_
  6.  
  7. //=======================================================
  8. #include <somobj.idl>
  9.  
  10. //=======================================================
  11. module DevUniv { 
  12.  
  13.     //===================================================
  14.     interface SFinance : SOMObject {
  15.         // Savings functions
  16.         double    FutureValue(in double presentValue,
  17.                             in double annualInterestPercent, 
  18.                             in short compoundsPerYear, 
  19.                             in double years);
  20.         double    FutureValueWithPayments(in double payment,
  21.                                         in short paymentsPerYear,
  22.                                         in short compoundsPerYear, 
  23.                                         in double annualInterestPercent, 
  24.                                         in double years);
  25.         double    AnnuityPresentValue(in double payment,
  26.                                     in double annualInterestPercent, 
  27.                                     in short paymentsPerYear, 
  28.                                     in double years);
  29.         double    AnnuityMonths(in double annuity,
  30.                               in double monthlyWithdrawal,
  31.                               in double annualInterestPercent);
  32.         // Loan functions
  33.         double    Payment(in double amountBorrowed,
  34.                         in double annualInterestPercent, 
  35.                         in double years);
  36.         double    LoanAmount(in double monthlyPayment,
  37.                         in double annualInterestPercent, 
  38.                         in double years);
  39.         double    LoanMonths(in double amountBorrowed,
  40.                             in double monthlyPayment,
  41.                             in double annualInterestPercent);
  42.         double    InterestRate(in double amountBorrowed,
  43.                             in double monthlyPayment,
  44.                             in double years);
  45.         double    BalloonPayment(in double amountBorrowed,
  46.                                 in double monthlyPayment,
  47.                                 in double annualInterestPercent,
  48.                                 in double years);
  49.         
  50.         //-----------------------------------------
  51.         #ifdef __SOMIDL__
  52.         implementation {            
  53.             functionprefix = FINAN;
  54.             majorversion = 1; minorversion = 0;            
  55.             releaseorder:
  56.                 FutureValue, FutureValueWithPayments,
  57.                 AnnuityPresentValue, AnnuityMonths,
  58.                 Payment, LoanAmount, LoanMonths,
  59.                 InterestRate, BalloonPayment;
  60.             };    // implementation
  61.         #endif
  62.             
  63.     };    // interface SFinance
  64.  
  65. };  // module
  66.  
  67. //=======================================================
  68. #endif
  69.  
  70.